<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>JpetStore</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css"/>
    <link rel="stylesheet" href="../css/jquery-ui.css" type="text/css"/>
    <script th:src = "@{/JS/jquery-3.2.1.js}"></script>
    <script th:src = "@{/JS/jquery-ui.js}"></script>
</head>
<body>
    <div th:replace="/common/header.html"></div>
    <div id="Content">
        <div id="Catalog">
            <div>
                <a href="/catalog/main">Return to Menu</a>
            </div>
            <form action="editAccount" method="post" id="editAccountForm">
                <h3>User Information</h3>

                <table>
                    <tr>
                        <td>User ID:</td>
                        <td th:text="${session.loginAccount.getUsername()}"></td>
                    </tr>
                    <tr>
                        <td>New password:</td>
                        <td><input type="password" name="password" class="editAccountFormText" id="password"/></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td id="isRightPass"></td>
                    </tr>
                    <tr>
                        <td>Repeat password:</td>
                        <td><input type="password" name="repeatPassword"class="editAccountFormText" id="repeatPassword"/></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td id="isRepeatPass"></td>
                    </tr>
                </table>
                <div th:replace="/account/IncludeAccountFields::editmiddle"></div>

                <script th:src = "@{/JS/account/EditAccountFormJS.js}"></script>
                <input type="submit"  value="保存" />

            </form>
            <a href="/order/viewListOrder">我的订单</a>
    </div>
    <div th:replace="/common/footer.html"></div>
</body>
</html>